package com.broadsoft.cluster.smartcluster.message;

import com.broadsoft.cluster.smartcluster.ClusterMessage;
 

/**
 * 
* FIXME: <A few lines of description of what class is about and what it does.> 
*
* <HR/><B>Modification Block</B>
* <P>
* Version: FIXME: 1.0.1 <BR>
* Author: FIXME: luzhen
* Date: 2011-9-21
* TAG: <A short name to find out all changed made by this modification.>
* Comments: Created.
* Bug fix NO.: <If required>
* </P>
* <P>
* ... Other Modifications following above structure.
* </P>
*
 */
public class RunTaskMessage implements ClusterMessage {

 
    private static final long serialVersionUID = 8411862967417316917L;
    private Runnable task;
    
    public int getMessageType() { 
        return RUN_TASK_MESSAGE;
    }
    
    public RunTaskMessage() {

    }

    public RunTaskMessage(Runnable task) {
        this.task = task;
    }

    public Runnable getTask() {
        return task;
    }


}
